﻿<%@ Page Title="Universe.MediaProbe: IIS Sandbox" Language="C#" AutoEventWireup="true"
    CodeBehind="Default.aspx.cs" Inherits="MediaProbe.W3Test._Default" %>
<%@ OutputCache Location="None" Duration="1" VaryByParam="none" %>
<%@ Import Namespace="Universe.MediaProbe" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>
    <head runat="server">
    <style type="text/css">
        body {
            font-family: Calibry, Segoe UI, Verdana, Helvetica, Arial;
        }
        h1 {
            font-size: 25pt;
            /*font-family: Calibry, Segoe UI, Verdana, Helvetica, Arial;*/
            border-bottom: 1px dotted gray;
        }
    </style>
    <link type="text/css" rel="stylesheet" href="~/Styles/Styles.css"/>
    </head>
    <body>
        <h1>Universe.MediaProbe: IIS Sandbox</h1>
<div>
    <table>
        <tr><td>
                <img src="GetImage.ashx" />
            </td><td style="border: 1px solid gray; padding: 15px; vertical-align: middle; -moz-border-radius: 6px; -webkit-border-radius: 6px; border-radius: 6px;" >
    Universe.MediaProbe is managed code adapter to ffmpeg project.<br/>
    ProbeReport class Version is <%= typeof(ProbeReport).Assembly.GetName().Version %><br/>
    Sample Video is <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="<%# SampleUrl %>"><%= SampleUrl %></asp:HyperLink> <br/>
    Video resolution: <%# Report.Videos[0].Width %>*<%# Report.Videos[0].Height %> px<br/>
    Video duration: <%# Report.Duration %> secs<br/>
    Screenshot on the left was made from 5.0th secs of the video
                 </td></tr>
    </table>
    <br/><br/>
</div>

<div style='width:99%; text-align: center; horiz-align: center'>
<div class="CSSTableGenerator" style='width: 99%'>
	<table>
		<tr> 
			<td>
				Native ffprobe XML Report
			</td>
			<td >
				Managed ProbeReport via XmlSerializer
			</td>
		</tr>
		<tr>
			<td style='width:50%; vertical-align: top' >
				<%= this.BuildNativeAsHtml() %>
			</td>
			<td style='width:50%; vertical-align: top'>
				<%= this.BuildManagedAsHtml() %>
			</td>
		</tr>
		<tr>
			<td colspan="2" style="text-align: center">
				Total Server Side Time: <%= GetTotalTimeAsString() %> secs
			</td>
		</tr>
	</table>
</div>
</div>								

</body>
</html>
